/**
 * @(#)$CurrentFile
 * 版权声明 厦门亿力吉奥软件公司, 版权所有 违者必究
 *
 *<br> Copyright:  Copyright (c) 2006
 *<br> Company:厦门亿力吉奥软件公司
 *<br> @author 耿渊
 *<br> 2007-07-01
 *<br> @version 1.0
 *————————————————————————————————————
 *修改记录
 *    修改者：
 *    修改时间：
 *    修改原因：
 *——————————————————————————————————————
 */
package com.sunsharing.flow.exe;

import com.sunsharing.flow.model.Node;

import java.util.*;

/**
 *<pre>Event</pre>
 *<br>--------------------------------------------------------------------------
 *<br> <b>功能描述:</b>
 *<br>   执行节点
 *<br> 注意事项:
 *<br> jdk 1.4
 *<br> jsp 1.2
 *<br>--------------------------------------------------------------------------
 *<br>
 */

public class ExecutedNode {

    /**主键**/
    protected long id;

    /**节点**/
    protected Node node;

    /**令牌**/
    protected Token token;

    /**序号**/
    private int executedOrder;


    public ExecutedNode() {
    }

    public ExecutedNode(Node node) {
        this.node = node;
    }

    public void setId(long id) {
        this.id = id;
    }

    public void setNode(Node node) {
        this.node = node;
    }

    public void setToken(Token token) {
        this.token = token;
    }

    public void setExecutedOrder(int executedOrder) {
        this.executedOrder = executedOrder;
    }

    public long getId() {
        return id;
    }

    public Node getNode() {
        return node;
    }

    public Token getToken() {
        return token;
    }

    public int getExecutedOrder() {
        return executedOrder;
    }





    public static void main(String[] args) {
        Set set = new HashSet();
        ExecutedNode node1 = new ExecutedNode();
        node1.setId(0);
        node1.setExecutedOrder(0);
        ExecutedNode node2 = new ExecutedNode();
        node2.setId(1);
        node2.setExecutedOrder(0);
        set.add(node1);
        set.add(node2);
        System.out.println(set.size());
//        Iterator itor = set.iterator();
//        while(itor.hasNext()) {
//            ExecutedNode a = (ExecutedNode)itor.next();
//            System.out.println(a.id);
//        }
    }




}
